/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.rainbow.udo;

import java.util.List;

/**
 *
 * @author hironaga
 */
public abstract class UdoWriter implements UTransaction{

    protected UConnection uconn;

    public UdoWriter(UConnection uconn) {
        this.uconn = uconn;
    }

    public abstract void create(UQuery uquery, Object data)
                                                    throws UdoHandleException;

    public abstract void createList(UQuery uquery, List<?> dataList)
                                                    throws UdoHandleException;

//    public abstract <T> T read(UQuery uquery, Class<T> clazz)
//                                                    throws UdoHandleException;
//
//    public abstract <T> List<T> readList(UQuery uquery, Class<T> clazz)
//                                                    throws UdoHandleException;

    public abstract void update(UQuery uquery, Object data)
                                                    throws UdoHandleException;

    public abstract void updateList(UQuery uquery, List<?> dataList)
                                                    throws UdoHandleException;

    public abstract void delete(UQuery uquery)
                                                    throws UdoHandleException;

    public abstract void close();


}
